package cn.itcast.bos.service.base;


import cn.itcast.bos.domain.base.Courier;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by xbqco on 2018/7/12.
 */

public interface CourierService {

    public void save(Courier c);
    public Page<Courier> findPageData(Specification spec, Pageable pageable);
    public List<Courier> findAll();

    public void updateDeltag(Integer id);
    public void restore(Integer id);
    public Page<Courier> findByFixedAreaId(Specification spec,Pageable pageable);
    public List<Courier> findBySpec(Specification spec);

    public List<Object[]> findCourierGroupByCompany();
}
